package com.joysuch.wwyt.log.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.joysuch.wwyt.core.exception.ApiBusinessException;
import com.joysuch.wwyt.log.bean.LogPageSearchBean;
import com.joysuch.wwyt.log.entity.FileUploadLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zr
 * @since 2021-07-14
 */
public interface FileUploadLogService extends IService<FileUploadLog> {


    /**
     * @param businessCode 业务编号
     * @param moduleName   模块名称
     * @param fileName     文件名称
     * @param uploadStatus 执行状态
     * @param uploadDetail 执行详情
     * @return
     * @throws ApiBusinessException
     */
    void savaLog(Integer businessCode, String moduleName, String fileName, Integer uploadStatus, String uploadDetail);


    /**
     * @param logPageSearchBean 文件上传日志搜索Bean
     * @return
     */
    IPage<FileUploadLog> selectPage(LogPageSearchBean logPageSearchBean);
}
